package com.feemanage.domain.vo;

import com.common.annotation.Excel;
import com.common.utils.poi.MyDataHandler;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.framework.config.BigDecimalSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 项目分类经费执行率
 */
@Data
@ApiModel("项目执行率")
public class ProjectExecuteVo {

    private static final long serialVersionUID = 1L;

    @Excel(name="项目名称")
    @ApiModelProperty("项目名称")
    private String projectName; //项目名称

    @ApiModelProperty("项目id")
    private String projectId; //项目id

    @Excel(name="开始日期")
    @ApiModelProperty("开始日期")
    private LocalDate  beginDate; //开始日期

    @Excel(name="项目总经费(元)")
    @ApiModelProperty("项目总经费")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal feeAuthorize; //项目总经费

    @Excel(name="到账金额(元)")
    @ApiModelProperty("到账金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal incomeFee; //到账金额

    @Excel(name="支出金额(元)")
    @ApiModelProperty("支出金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal payoutFee; //支出金额

    @Excel(name="负责人")
    @ApiModelProperty("负责人")
    private String chargerName; //负责人

    @Excel(name="到账率",cellType = Excel.ColumnType.STRING,suffix = "%")
    @ApiModelProperty("到账率")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal incomeRate; //到账率

    @Excel(name="执行率",cellType = Excel.ColumnType.STRING, suffix = "%")
    @ApiModelProperty("执行率")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal executeRate; //执行率

}
